program SharpDiaryLoader;

uses
  Forms,
  Windows,
  SysUtils,
  U_SharpDiaryLoaderHelper in 'U_SharpDiaryLoaderHelper.pas';

{$R *.res}

begin
  Application.Initialize;

  if not CheckIfDotNetFrameworkInstalled('v2.0.50727') then
  begin
    MessageBox(GetActiveWindow,
      'Please go to this link to install Microsoft .NET framework at first.' + #13
      + 'http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&DisplayLang=zh-cn',
      'Info',
      MB_ICONWARNING + MB_OK);
  end
  else
  begin
    ExecuteApplication(ExtractFilePath(Application.ExeName) + 'SharpDiary.exe');
  end;

  Application.Run;
end.
